﻿@model DrugStore.Models.EmployeeModel

@{
   // ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_LayoutLogin.cshtml";
}
<body>

    <div class="container">
        <div class="row">
            <div class="col-md-4 col-md-offset-4">
                <div class="login-panel panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">Vui lòng đăng nhập</h3>
                    </div>
                    <div class="panel-body">
                            <fieldset>
@using (Html.BeginForm("Login", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
     {
    @Html.AntiForgeryToken() <!--Chống giả lập yêu cầu -->
    @Html.ValidationSummary(true) <!-- hiện thị kiểm lỗi phía Server-->
                                <div class="form-group">
                                    @*<input class="form-control" placeholder="E-mail" name="email" type="email" autofocus>*@
                                    @Html.TextBoxFor(model => model.user_name, new { name = "UserName", type = "text", id = "UserName", placeholder = "Tên đăng nhập", maxlength = "100", @class = "form-control" })
                                </div>
                                <div class="form-group">
                                    @*<input class="form-control" placeholder="Password" name="password" type="password" value="">*@
                                    @Html.PasswordFor(model => model.password, new { name = "password", type = "text", id = "password", placeholder = "Mật khẩu", maxlength = "100", @class = "form-control" })
                                </div>
                                <div class="checkbox">
                                    <label>
                                        <input name="remember" type="checkbox" value="Remember Me">Remember Me
                                    </label>
                                </div>
                                <!-- Change this to a button or input when using this as a form -->
                                <input type="submit" class="btn btn-lg btn-success btn-block" value="Đăng Nhập" />
     }
                            </fieldset>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>